package liuyuyang.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import liuyuyang.domain.Course;
import liuyuyang.mapper.CourseMapper;
import liuyuyang.service.CourseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {
    @Resource
    private CourseMapper courseMapper;

    @Override
    public List<Course> get(Integer id){
        // return courseMapper.get(id);
        return baseMapper.get(id);
    }
}
